<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>13.Date对象</title>
</head>
<body>

    <script>
        var date = new Date(2013,11,12);
        //  var date = new Date();
        console.log(date);
      // console.dir(date);

        console.log(date.getFullYear());
        console.log(date.getMonth()+1); // 0 -11
        console.log(date.getDate());
        console.log(date.getHours());
        console.log(date.getMinutes());
        console.log(date.getSeconds());
        console.log(date.getTime());

        console.log(date.getDay());  // 星期
    </script>
    
</body>
</html>